/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fleet.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 车队日志Entity
 * @author sld
 * @version 2017-11-23
 */
public class MotorcadeLog extends DataEntity<MotorcadeLog> {
	
	private static final long serialVersionUID = 1L;
	private VehicleInformation vehicleInformation;		// 车牌号
	private VehicleInformation carRegistration;		// 车挂号
	private String driver;		// 司机
	private Date date;		// 日期
	private String transportationMission;		// 运输任务
	private String money;		// 金额(元)
	private String cargoDescribe;		// 货物描述
	private String totalQuantity;		// 总数量
	private String grossWeight;		// 总毛重(吨)
	private String startShipment;		// 起运地
	private String destination;		// 目的地
	private String cargoType;		// 运输货物类型
	private String mileage;		// 里程
	private String paymentObject;		// 交款对象
	private String contractNumber;		// 合同号
	private String downExplain;		// 停驶说明（地点，原因）
	private String count;		// 趟数
	private String projectName; //项目名称
	public MotorcadeLog() {
		super();
	}

	public MotorcadeLog(String id){
		super(id);
	}

	@ExcelField(title="车牌号", fieldType=VehicleInformation.class, value="",  align=2, sort=1)
	public VehicleInformation getVehicleInformation() {
		return vehicleInformation;
	}

	public void setVehicleInformation(VehicleInformation vehicleInformation) {
		this.vehicleInformation = vehicleInformation;
	}
	
	@ExcelField(title="车挂号",fieldType=VehicleInformation.class, value="", align=2, sort=2)
	public VehicleInformation getCarRegistration() {
		return carRegistration;
	}

	public void setCarRegistration(VehicleInformation carRegistration) {
		this.carRegistration = carRegistration;
	}
	
	@ExcelField(title="司机", align=2, sort=3)
	public String getDriver() {
		return driver;
	}

	public void setDriver(String driver) {
		this.driver = driver;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd ")
	@ExcelField(title="日期", align=2, sort=4)
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	@ExcelField(title="运输任务", align=2, sort=5)
	public String getTransportationMission() {
		return transportationMission;
	}

	public void setTransportationMission(String transportationMission) {
		this.transportationMission = transportationMission;
	}
	
	@ExcelField(title="金额(元)", align=2, sort=6)
	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}
	
	@ExcelField(title="货物描述", align=2, sort=7)
	public String getCargoDescribe() {
		return cargoDescribe;
	}

	public void setCargoDescribe(String cargoDescribe) {
		this.cargoDescribe = cargoDescribe;
	}
	
	@ExcelField(title="总数量", align=2, sort=8)
	public String getTotalQuantity() {
		return totalQuantity;
	}

	public void setTotalQuantity(String totalQuantity) {
		this.totalQuantity = totalQuantity;
	}
	
	@ExcelField(title="总毛重(吨)", align=2, sort=9)
	public String getGrossWeight() {
		return grossWeight;
	}

	public void setGrossWeight(String grossWeight) {
		this.grossWeight = grossWeight;
	}
	
	@ExcelField(title="起运地", align=2, sort=10)
	public String getStartShipment() {
		return startShipment;
	}

	public void setStartShipment(String startShipment) {
		this.startShipment = startShipment;
	}
	
	@ExcelField(title="目的地", align=2, sort=11)
	public String getDestination() {
		return destination;
	}

	public void setDestination(String destination) {
		this.destination = destination;
	}
	
	@ExcelField(title="运输货物类型", align=2, sort=12)
	public String getCargoType() {
		return cargoType;
	}

	public void setCargoType(String cargoType) {
		this.cargoType = cargoType;
	}
	
	@ExcelField(title="里程", align=2, sort=13)
	public String getMileage() {
		return mileage;
	}

	public void setMileage(String mileage) {
		this.mileage = mileage;
	}
	
	@ExcelField(title="交款对象", align=2, sort=14)
	public String getPaymentObject() {
		return paymentObject;
	}

	public void setPaymentObject(String paymentObject) {
		this.paymentObject = paymentObject;
	}
	
	@ExcelField(title="合同号", align=2, sort=15)
	public String getContractNumber() {
		return contractNumber;
	}

	public void setContractNumber(String contractNumber) {
		this.contractNumber = contractNumber;
	}
	
	@ExcelField(title="停驶说明（地点，原因）", align=2, sort=16)
	public String getDownExplain() {
		return downExplain;
	}

	public void setDownExplain(String downExplain) {
		this.downExplain = downExplain;
	}
	
	@ExcelField(title="趟数", align=2, sort=17)
	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}

	@ExcelField(title="项目名称",align=2,sort=18)
	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
}